projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2870f4d
)
widget: Check rootness for invisibility
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 24 Feb 2019 13:19:05 +0000
(08:19 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 17 Mar 2019 01:23:28 +0000
(21:23 -0400)
Make the function that determines initial visibility
look at whether the class implements GtkRoot. That is
the eventual goal for this check. For now, allow
popovers in here as well.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 81a231a1dda57a5718a7ff67a5b781dd031029f4..cb37b01ff2b900e8697260f31c1c34740240299c 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-12087,7
+12087,7
@@
gtk_widget_class_set_css_name (GtkWidgetClass *widget_class,
static gboolean
gtk_widget_class_get_visible_by_default (GtkWidgetClass *widget_class)
{
- return !(
GTK_IS_WINDOW_CLASS (widget_class
) ||
+ return !(
g_type_is_a (G_TYPE_FROM_CLASS (widget_class), GTK_TYPE_ROOT
) ||
GTK_IS_POPOVER_CLASS (widget_class));
}